package ${packageName}.mapper;

import ${packageName}.model.${modelName};
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author ailanyin
* @version 1.0
* @since ${.now?string('yyyy-MM-dd hh:mm:ss')}
*/
@Mapper
public interface ${mapperName}{

	/**
     * 条件查询列表
     *
     * @param ${modelName?uncap_first} ${modelName?uncap_first}
     * @return list
     */
    List<${modelName}> selectList(${modelName} ${modelName?uncap_first});

    /**
     * 新增
     *
     * @param ${modelName?uncap_first} ${modelName?uncap_first}
     */
    void insertSelective(${modelName} ${modelName?uncap_first});

    /**
     * 修改
     *
     * @param ${modelName?uncap_first} ${modelName?uncap_first}
     */
    void updateByPrimaryKeySelective(${modelName} ${modelName?uncap_first});

    /**
     * 批量删除
     *
     * @param ids ids
     */
    void deleteByIds(@Param("list") Long[] ids);

    /**
     * 主键查询
     *
     * @param id id
     * @return ${modelName?uncap_first}
     */
    ${modelName} selectByPrimaryKey(Long id);

}
